﻿$(function () {
	var animation = new ScrollAnimation();
	animation.AddFrame({
		Frame: $('.nemoPostFirstPart').offset().top,
		OnHitDown: function () {
			$('.nemoPostShare').data('prevLeft', $('.nemoPostShare').css('left'));
			$('.nemoPostShare').css('left', $('.nemoPostShare').offset().left + 'px').css('position', 'fixed');
		},
		OnHitUp: function () {
			$('.nemoPostShare').css('left', $('.nemoPostShare').data('prevLeft')).css('position', 'absolute');
		}
	});
});